/* 知识付费会员App基础样式 */
:root {
  --primary-color: #3b82f6;
  --secondary-color: #6366f1;
  --text-color: #333333;
  --light-text: #6b7280;
  --border-color: #e5e7eb;
  --background-color: #f9fafb;
  --card-background: #ffffff;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* iPhone样式模拟 */
.iphone-container {
  width: 390px;
  height: 844px;
  background-color: var(--card-background);
  border-radius: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 10px solid #000;
}

/* 顶部状态栏 */
.status-bar {
  height: 44px;
  background-color: var(--card-background);
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.status-bar-left {
  display: flex;
  align-items: center;
}

.status-bar-right {
  display: flex;
  align-items: center;
}

/* 底部导航栏 */
.tab-bar {
  height: 83px;
  background-color: var(--card-background);
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: absolute;
  bottom: 0;
  width: 100%;
  border-top: 1px solid var(--border-color);
}

.tab-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  color: var(--light-text);
}

.tab-bar-item.active {
  color: var(--primary-color);
}

.tab-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

/* 页面内容区域 */
.page-content {
  height: calc(844px - 44px - 83px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 卡片组件 */
.card {
  background-color: var(--card-background);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  border: none;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

/* 徽章/标签 */
.badge {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
}

/* 分割线 */
.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 16px 0;
}

/* 列表项 */
.list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.list-item:last-child {
  border-bottom: none;
}

/* 课程卡片 */
.course-card {
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--card-background);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.course-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.course-info {
  padding: 12px;
}

.course-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.course-author {
  font-size: 14px;
  color: var(--light-text);
  margin-bottom: 8px;
}

.course-stats {
  display: flex;
  font-size: 12px;
  color: var(--light-text);
}

/* 会员标签 */
.vip-badge {
  background: linear-gradient(135deg, #ff9500, #ff2d55);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
} 